#!/usr/bin/python
import cgi

print "Content-type: text/json\n"

parametros = cgi.FieldStorage()

n = int(parametros["n"].value)

json = '{"Tabla":'+str(n)

for i in range(11):
    valor = n*i
    json = json + ',"Valor'+str(i)+'":'+str(valor)
	
json = json + '}'

print json
